package bandidong.bean;

import bandidong.model.Customer;
import bandidong.transfermodel.SearchCustomerTransferModel;
import java.util.List;
import javax.ejb.Remote;

@Remote
public interface CustomerBeanRemote {
    public List<Customer> getAllCustomers();
    public Customer getCustomerById(int customerId);
    public Customer addCustomer(Customer customer);
    public String updateCustomer(Customer customer);
    public String deleteCustomer(Customer customer);
    public List<Customer> getCustomersCriteria(SearchCustomerTransferModel model, int page, int pageSize);
    public List<Customer> getCustomersCriteria(SearchCustomerTransferModel model);
    public boolean checkEmailExists(String customerEmail);
    public boolean checkAccountNumberExists(String customerAccountNumber);
    public boolean checkEmailExists(String customerEmail, int customerId);
    public boolean checkAccountNumberExists(String customerAccountNumber, int customerId);
    public Customer checkCustomerExists(String customerEmail, String customerPassword);
}
